import Vue from 'vue'
import VueRouter from 'vue-router'
import MedicalDocumentsAdd from '../views/MedicalDocumentsAdd.vue'
import MedicalRecordsAdd from '../views/MedicalRecordsAdd.vue'
import MedicalDocumentsSearch from "../views/MedicalDocumentsSearch.vue";
import MedicalRecordsSearch from '../views/MedicalRecordsSearch.vue'
import Index from '../views/Index.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'Index',
    component: Index,
	children:[
		{
		path: '/MedicalRecordsAdd',
		name: 'MedicalRecordsAdd',
		component: MedicalRecordsAdd,
		},
		{
		path: '/MedicalRecordsSearch',
		name: 'MedicalRecordsSearch',
		component: MedicalRecordsSearch,
		},
		{
		  path: '/MedicalDocumentsSearch',
		  name: 'MedicalDocumentsSearch',
		  component: MedicalDocumentsSearch,
		},
		{
		   path: '/MedicalDocumentsAdd',
		   name: 'MedicalDocumentsAdd',
		   component: MedicalDocumentsAdd,
		}
	]
  },
]

const router = new VueRouter({
  routes
})

export default router
